readyFunc = function(){
    return {
        init: function(){
        	new MenuButton(7, '#menuDiv');
    	}
    };
}();

jQuery(readyFunc.init);

function save(tb) {
	var url = __MANAGER+'person_edit.do';
	if(editForm._operType.value == 'append') {
		url = __MANAGER+'person_add.do';
	}
	$(editForm).form('submit',{
		url: url,
		type: 'post',
		contentType: "application/x-www-form-urlencoded;charset=utf-8",
		success: function(data){
			var json = jQuery.parseJSON(data);
			if(json.rtnCode == 'success') {
				S4J.utils.showMessage(json.rtnMsg,parent);
				goback();
			}
		}
	});
}

function goback(tb) {
	parent.closeWin();
}